import { Componet } from "../../Componet"

const getTag = vdom => {
  // console.log('组件', vdom.type)
  // console.log('组件Object.getPrototypeOf(vdom.type)', Object.getPrototypeOf(vdom.type))
  if (typeof vdom.type === "string") {
    return "host_componet"
  } else if (Object.getPrototypeOf(vdom.type) === Componet) {
    return "class_componet"
  } else {
    return "function_componet"
  }
}

export default getTag